#include "CWinTest.h"

BOOL CWinTest::XWinTest::ProcessWindowMessage(
    HWND hWnd, 
    UINT uMsg, 
    WPARAM wParam, 
    LPARAM lParam, 
    LRESULT& lResult, 
    DWORD dwMsgMapID
)
{
    if (uMsg == WM_DESTROY)
    {
        PostQuitMessage(0);
        return TRUE;
    }
    if (uMsg == WM_PAINT)
    {
        PAINTSTRUCT Ps = { 0 };
        PCWCH lpString = L"HelloWOrld";
        HDC hDC = BeginPaint(&Ps);
        TextOut(hDC, 0, 0, lpString, wcslen(lpString));
        EndPaint(&Ps);
        return TRUE;
    }
    return FALSE;
}
